<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><s:text name="title"/></title>
<link href="<%=request.getContextPath()%>/stage/css/inside.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/stage/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/JavaScript">
<!--
function mySubmit(){
	var startDate = document.getElementById("startDate").value;
	var endDate = document.getElementById("endDate").value;
	if(startDate>endDate){
		alert("请选择合法的时间段.");
		return false;
	}
	return true;
}
//-->
</script>
</head>

<body onload="MM_preloadImages('<%=request.getContextPath()%>/stage/images/menu0_01.jpg','<%=request.getContextPath()%>/stage/images/menu0_02.jpg','<%=request.getContextPath()%>/stage/images/menu0_03.jpg','<%=request.getContextPath()%>/stage/images/menu0_04.jpg','<%=request.getContextPath()%>/stage/images/menu0_05.jpg','<%=request.getContextPath()%>/stage/images/menu0_06.jpg','<%=request.getContextPath()%>/stage/images/menu0_07.jpg')">
<div class="mainbody">
<%@ include file="head1.jsp"%>
 <div class="intermediate">
    <h1>当前位置：首页&nbsp;&gt;&nbsp;<b><FONT COLOR="#FFCC66">销售额查询</FONT></b></h1>
<%@ include file="left_user.jsp"%>
    <div class="right">
	      <h4><img src="<%=request.getContextPath()%>/stage/images/xdd/ddlb.png" width="118" height="16" /></h4>
	      <form action="<%=request.getContextPath()%>/tosales.action" method="post" onsubmit="return mySubmit()">
	    	<ul>
	    	<li>&nbsp;</li>
		     <li style="height: 30px;">经销商名称：
		       	<input name="salesBO.cmpName" value="<s:property value="salesBO.cmpName"/>" type="text" class="kuang" maxlength="30"/>
		       	开始时间：<input name="salesBO.startDate" id="startDate" value="<s:property value="salesBO.startDate"/>" type="text" class="kuang" readonly="readonly"/>
		       	<img onclick="WdatePicker({el:'startDate'})" src="<%=request.getContextPath()%>/stage/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"/>
		       	结束时间：<input name="salesBO.endDate" id="endDate" value="<s:property value="salesBO.endDate"/>" type="text" class="kuang" readonly="readonly"/>
		       	<img onclick="WdatePicker({el:'endDate'})" src="<%=request.getContextPath()%>/stage/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle"/>
		       <input style="margin-bottom: -13px" type="image" src="<%=request.getContextPath()%>/stage/images/common/search.gif"/>
		     </li>
		  </ul>
		  </form>
		  <div class="jgkz">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="30" align="center" class="xian_01">公司名称</td>
                <td height="30" align="center" class="xian_01">公司电话</td>
                <td height="30" align="center" class="xian_01">联系人</td>
                <td height="30" align="center" class="xian_01">联系人电话</td>
                <td height="30" align="center" class="xian_01">开始日期</td>
                <td height="30" align="center" class="xian_01">结束日期</td>
                <td height="30" align="center" class="xian_01_1">销售额</td>
              </tr>
               <s:iterator value="sales" status="u">
				<s:if test="#u.index%2!=0"><tr bgcolor="#1F1F1F"></s:if>
				<s:else><tr></s:else>
                <td width="22%" height="30" align="center" class="xian_02">&nbsp;<s:property value="cmpName"/></td>
                <td width="10%" height="30" align="center" class="xian_02">&nbsp;<s:property value="cmpTel"/></td>
                <td width="8%" height="30" align="center" class="xian_02">&nbsp;<s:property value="contact"/> </td>
                <td width="10%" height="30" align="center" class="xian_02">&nbsp;<s:property value="contactTel"/> </td>
                <td width="10%" height="30" align="center" class="xian_02">&nbsp;<s:property value="startDate"/> </td>
                <td width="10%" height="30" align="center" class="xian_02">&nbsp;<s:property value="endDate"/></td>
                <td width="10%" height="30" align="center" class="xian_02">&nbsp;￥<s:property value="total"/></td>
              </tr>
              </s:iterator>
            </table>
      </div>
    </div>
 </div>
 <%@ include file="foot.jsp"%>
</div>
</body>
</html>
